package main

import (
	"fmt"
	"github.com/unidoc/unioffice/document"
	"log"
)

func main() {
	doc, err := document.Open("C:/Users/Administrator/go/src/awesomeProject1/gopl/ch5/item57/unioffice/5.docx")
	if err != nil {
		log.Fatalf("error opening document: %s", err)
	}

	for _, para := range doc.Paragraphs() {
		for _, run := range para.Runs() {
			fmt.Print(run.Text())
		}
		fmt.Println()
	}
}
